home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Video Toaster 4.0
/
Video Toaster v4.0.iso
/
arexx
/
modeler
/
frenchtickler.lwm
< prev
next >
Wrap
Text File
|
1993-12-13
|
976b
|
45 lines
/* ARexx test program Version 2 CMD: Test ARexx
* with GU interface!! */
libadd = addlib("LWModelerARexx.port",0)
SIGNAL ON ERROR
SIGNAL ON SYNTAX
Val=""
cmd='call MAKEBOX(-0.5,0.5)'
/* cmd='call notify(1,"Reformat All HD Partitions?")' */
LOOP:
Continue=1
do while Continue
call req_begin "Enter ARexx Command"
req=1
CmdId = req_addcontrol("",'S',40)
call req_setval CmdId,cmd
x = req_post()
if (x) then do
cmd = req_getval(CmdId)
end
else do
call req_end()
exit
end
call req_end()
if cmd="" then exit
interpret cmd
address command "wait 1 sec"
Continue = notify(2, '@ARexx Command: ','!'cmd,'@Try Another?')
end
exit
SYNTAX:
ERROR:
cmdstr=strip(sourceline(SIGL))
if word(cmdstr,1)='interpret' then cmdstr=cmd
t=Notify(2,'!Oops! Error 'RC' has been detected on line 'SIGL ,'@'ErrorText(rc),cmdstr)
if t=0 then exit
SIGNAL ON ERROR
SIGNAL ON SYNTAX
signal LOOP
call notify('How did I get here?')